package com.utilities;

import java.util.regex.Matcher;
import java.util.regex.Pattern;


public class StringUtil {
          public static boolean matchRegex(String regex,String text) {
        	if(text==null){return false;}
			Pattern pattern=Pattern.compile(regex);
			Matcher matcher=pattern.matcher(text);
			return matcher.find();
		}
}
